package lesson06;

public class Test02 {
    public static void main(String[] args) {
//        ChinesePeople chinesePeople = new ChinesePeople();
//        chinesePeople.setName("张飞");
//        chinesePeople.intro();
//        new People("张飞");
//        new ChinesePeople();
//        new ChinesePeople();
//        new People("关羽");
//        new ChinesePeople();
//        new ChinesePeople();
        ChinesePeople chinesePeople = new ChinesePeople("张飞");
        ChinesePeople chinesePeople1 = new ChinesePeople("关羽");
        System.out.println(chinesePeople == chinesePeople1);
        System.out.println(chinesePeople.equals(chinesePeople1));
        System.out.println(chinesePeople.hashCode());
        System.out.println(chinesePeople1.hashCode());
        System.out.println(chinesePeople.toString());
        System.out.println(chinesePeople1.toString());
        System.out.println(chinesePeople);
    }
}
